From e3936649745a627fa2c31fc7b8602793b7d6027b Mon Sep 17 00:00:00 2001 From: Lorenz Diener Date: Sat, 27 Apr 2019 21:04:06 +0200 Subject: Test fixups and small 2.8 fixes Pagination backwards is broken presently. --- tests/cassettes/test_media_post[False].yaml | 52 ++++++++++++++--------------- 1 file changed, 26 insertions(+), 26 deletions(-) (limited to 'tests/cassettes/test_media_post[False].yaml') diff --git a/tests/cassettes/test_media_post[False].yaml b/tests/cassettes/test_media_post[False].yaml index c526e0b..3c164c6 100644 --- a/tests/cassettes/test_media_post[False].yaml +++ b/tests/cassettes/test_media_post[False].yaml @@ -1,13 +1,13 @@ interactions: - request: body: !!binary | - LS05MzU4YTkwZWI4NDc0NjNiYTlkOGUzMWU3Nzg5MzAwMg0KQ29udGVudC1EaXNwb3NpdGlvbjog + LS1iYjg5NDk0Mzg4NmE0ODNjODc5MDZlODFkNTI2ZDE5NA0KQ29udGVudC1EaXNwb3NpdGlvbjog Zm9ybS1kYXRhOyBuYW1lPSJkZXNjcmlwdGlvbiINCg0KSm9obiBMZW5ub24gZG9pbmcgYSBmdW5u - eSB3YWxrDQotLTkzNThhOTBlYjg0NzQ2M2JhOWQ4ZTMxZTc3ODkzMDAyDQpDb250ZW50LURpc3Bv - c2l0aW9uOiBmb3JtLWRhdGE7IG5hbWU9ImZvY3VzIg0KDQotMC41LDAuMw0KLS05MzU4YTkwZWI4 - NDc0NjNiYTlkOGUzMWU3Nzg5MzAwMg0KQ29udGVudC1EaXNwb3NpdGlvbjogZm9ybS1kYXRhOyBu - YW1lPSJmaWxlIjsgZmlsZW5hbWU9Im1hc3RvZG9ucHl1cGxvYWRfMTUzMjk4NTUxMi45NTA0NjE2 - XzFMMjRLODgwTFUuanBlIg0KQ29udGVudC1UeXBlOiBpbWFnZS9qcGVnDQoNCv/Y/+AAEEpGSUYA + eSB3YWxrDQotLWJiODk0OTQzODg2YTQ4M2M4NzkwNmU4MWQ1MjZkMTk0DQpDb250ZW50LURpc3Bv + c2l0aW9uOiBmb3JtLWRhdGE7IG5hbWU9ImZvY3VzIg0KDQotMC41LDAuMw0KLS1iYjg5NDk0Mzg4 + NmE0ODNjODc5MDZlODFkNTI2ZDE5NA0KQ29udGVudC1EaXNwb3NpdGlvbjogZm9ybS1kYXRhOyBu + YW1lPSJmaWxlIjsgZmlsZW5hbWU9Im1hc3RvZG9ucHl1cGxvYWRfMTU1NjM4OTA5MS42MzQxMjc0 + X1RDMEs2MFJDMjcuanBlIg0KQ29udGVudC1UeXBlOiBpbWFnZS9qcGVnDQoNCv/Y/+AAEEpGSUYA AQEBAEgASAAA/+ICHElDQ19QUk9GSUxFAAEBAAACDGxjbXMCEAAAbW50clJHQiBYWVogB9wAAQAZ AAMAKQA5YWNzcEFQUEwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAPbWAAEAAAAA0y1sY21zAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAKZGVzYwAAAPwAAABe @@ -943,24 +943,24 @@ interactions: qYg3CP1hg5XagwuSZZej1N96VKgeHKRZSii9BM7fep2iK8u6Y69PxSpUVZtsdoSiQO3N/mozLhcI xMSN89s+KVKgU4XMHLHOFF7LVZRJrFV22pUqBoKKIKucrmmTAxMZfilSoFO2xicuMnjFStYMZkHV 3XP4pUqC5Zbdy3MwJvu7U0AjASTLfOy9aVKgjPC5Yj9imCTIjyrGTjBn9aVKgY09xujjo55uzvSp - UqD/2Q0KLS05MzU4YTkwZWI4NDc0NjNiYTlkOGUzMWU3Nzg5MzAwMi0tDQo= + UqD/2Q0KLS1iYjg5NDk0Mzg4NmE0ODNjODc5MDZlODFkNTI2ZDE5NC0tDQo= headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] Connection: [keep-alive] Content-Length: ['53738'] - Content-Type: [multipart/form-data; boundary=9358a90eb847463ba9d8e31e77893002] + Content-Type: [multipart/form-data; boundary=bb894943886a483c87906e81d526d194] User-Agent: [python-requests/2.18.4] method: POST uri: http://localhost:3000/api/v1/media response: - body: {string: '{"id":"9","type":"image","url":"http://localhost:3000/system/media_attachments/files/000/000/009/original/6d445db41d8f3659.jpeg","preview_url":"http://localhost:3000/system/media_attachments/files/000/000/009/small/6d445db41d8f3659.jpeg","remote_url":null,"text_url":"http://localhost:3000/media/Znn_-Gq2xW4boSCkomw","meta":{"focus":{"x":-0.5,"y":0.3},"original":{"width":600,"height":600,"size":"600x600","aspect":1.0},"small":{"width":400,"height":400,"size":"400x400","aspect":1.0}},"description":"John + body: {string: '{"id":"9","type":"image","url":"http://localhost/system/media_attachments/files/000/000/009/original/4e821b9595c45fe7.jpeg?1556389091","preview_url":"http://localhost/system/media_attachments/files/000/000/009/small/4e821b9595c45fe7.jpeg?1556389091","remote_url":null,"text_url":"http://localhost/media/OfA4eqCB8G37ISYX6DM","meta":{"focus":{"x":-0.5,"y":0.3},"original":{"width":600,"height":600,"size":"600x600","aspect":1.0},"small":{"width":400,"height":400,"size":"400x400","aspect":1.0}},"description":"John Lennon doing a funny walk"}'} headers: Cache-Control: ['max-age=0, private, must-revalidate'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"9070231296442cffae3de885297d79e9"] + ETag: [W/"fd6e53a1aa8b05456031f3d04424f672"] Referrer-Policy: [strict-origin-when-cross-origin] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] @@ -968,10 +968,10 @@ interactions: X-Download-Options: [noopen] X-Frame-Options: [SAMEORIGIN] X-Permitted-Cross-Domain-Policies: [none] - X-Request-Id: [2c198b82-0d17-429f-9d7a-e53599d24ad7] - X-Runtime: ['0.139553'] + X-Request-Id: [79dc8d57-a19e-4d8b-a435-29cd1dcbfd42] + X-Runtime: ['0.123984'] X-XSS-Protection: [1; mode=block] - content-length: ['533'] + content-length: ['540'] status: {code: 200, message: OK} - request: body: status=LOL+check+this+out&media_ids%5B%5D=9 @@ -986,16 +986,16 @@ interactions: method: POST uri: http://localhost:3000/api/v1/statuses response: - body: {string: '{"id":"100465738589000517","created_at":"2018-07-30T21:18:33.162Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"en","uri":"http://localhost:3000/users/mastodonpy_test/statuses/100465738589000517","content":"\u003cp\u003eLOL - check this out\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test/100465738589000517","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py + body: {string: '{"id":"101999515521299851","created_at":"2019-04-27T18:18:11.826Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"en","uri":"http://localhost/users/mastodonpy_test/statuses/101999515521299851","content":"\u003cp\u003eLOL + check this out\u003c/p\u003e","url":"http://localhost/@mastodonpy_test/101999515521299851","replies_count":0,"reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John - Lennon","locked":true,"bot":false,"created_at":"2018-07-13T23:02:25.260Z","note":"\u003cp\u003eI - walk funny\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test","avatar":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpeg","avatar_static":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpeg","header":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpeg","header_static":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpeg","followers_count":0,"following_count":0,"statuses_count":116,"emojis":[],"fields":[{"name":"bread","value":"toasty."},{"name":"lasagna","value":"no!!!"}]},"media_attachments":[{"id":"9","type":"image","url":"http://localhost:3000/system/media_attachments/files/000/000/009/original/6d445db41d8f3659.jpeg","preview_url":"http://localhost:3000/system/media_attachments/files/000/000/009/small/6d445db41d8f3659.jpeg","remote_url":null,"text_url":"http://localhost:3000/media/Znn_-Gq2xW4boSCkomw","meta":{"focus":{"x":-0.5,"y":0.3},"original":{"width":600,"height":600,"size":"600x600","aspect":1.0},"small":{"width":400,"height":400,"size":"400x400","aspect":1.0}},"description":"John - Lennon doing a funny walk"}],"mentions":[],"tags":[],"emojis":[]}'} + Lennon","locked":true,"bot":false,"created_at":"2019-04-27T20:03:12.393Z","note":"\u003cp\u003eI + walk funny\u003c/p\u003e","url":"http://localhost/@mastodonpy_test","avatar":"http://localhost/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpeg?1556389071","avatar_static":"http://localhost/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpeg?1556389071","header":"http://localhost/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpeg?1556389071","header_static":"http://localhost/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpeg?1556389071","followers_count":0,"following_count":0,"statuses_count":42,"emojis":[],"fields":[{"name":"bread","value":"toasty.","verified_at":null},{"name":"lasagna","value":"no!!!","verified_at":null}]},"media_attachments":[{"id":"9","type":"image","url":"http://localhost/system/media_attachments/files/000/000/009/original/4e821b9595c45fe7.jpeg?1556389091","preview_url":"http://localhost/system/media_attachments/files/000/000/009/small/4e821b9595c45fe7.jpeg?1556389091","remote_url":null,"text_url":"http://localhost/media/OfA4eqCB8G37ISYX6DM","meta":{"focus":{"x":-0.5,"y":0.3},"original":{"width":600,"height":600,"size":"600x600","aspect":1.0},"small":{"width":400,"height":400,"size":"400x400","aspect":1.0}},"description":"John + Lennon doing a funny walk"}],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null}'} headers: Cache-Control: ['max-age=0, private, must-revalidate'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"a46ccdacc5b0a925f6e6f3182cc17ede"] + ETag: [W/"dc46cbce50ee3193256916b8e2764163"] Referrer-Policy: [strict-origin-when-cross-origin] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] @@ -1003,10 +1003,10 @@ interactions: X-Download-Options: [noopen] X-Frame-Options: [SAMEORIGIN] X-Permitted-Cross-Domain-Policies: [none] - X-Request-Id: [c7d7ed56-e7ed-4be8-a905-01461604e6c7] - X-Runtime: ['0.230335'] + X-Request-Id: [6cab77d0-ed19-4bbb-b1ae-6ee00ea08221] + X-Runtime: ['0.166404'] X-XSS-Protection: [1; mode=block] - content-length: ['2056'] + content-length: ['2151'] status: {code: 200, message: OK} - request: body: null @@ -1018,13 +1018,13 @@ interactions: Content-Length: ['0'] User-Agent: [python-requests/2.18.4] method: DELETE - uri: http://localhost:3000/api/v1/statuses/100465738589000517 + uri: http://localhost:3000/api/v1/statuses/101999515521299851 response: body: {string: '{}'} headers: Cache-Control: ['max-age=0, private, must-revalidate'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"dd8d0a4afede5f7118e71076dbb426d4"] + ETag: [W/"71fb4d7e1e48f649eba00c8cd0090849"] Referrer-Policy: [strict-origin-when-cross-origin] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] @@ -1032,8 +1032,8 @@ interactions: X-Download-Options: [noopen] X-Frame-Options: [SAMEORIGIN] X-Permitted-Cross-Domain-Policies: [none] - X-Request-Id: [3e233abd-a9f0-44af-b74b-8d50faaefa88] - X-Runtime: ['0.070429'] + X-Request-Id: [4e394051-b9fc-400f-9ed2-8559a747d599] + X-Runtime: ['0.049374'] X-XSS-Protection: [1; mode=block] content-length: ['2'] status: {code: 200, message: OK} -- cgit v1.2.3